Skip to content

fix(lint): default RUSTUP_HOME for cargo-dylint 6.x driver check - #169

Merged
zackees merged 1 commit into
mainfrom
fix/lint-rustup-home
Jun 12, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/lint-rustup-home

Conversation

@zackees

@zackees zackees commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

  • bash lint failed on local dev machines with Error: environment variable not found: RUSTUP_HOME once cargo-dylint 6.0.1 is installed (the version the lint script and CI require). CI exports RUSTUP_HOME; local shells usually rely on rustup's implicit default.
  • Derive RUSTUP_HOME from rustup show home when unset, before invoking cargo-dylint.

Test plan

  • env -u RUSTUP_HOME bash lint passes end-to-end on Windows (previously failed at the dylint step)
  • No behavior change when RUSTUP_HOME is already exported (CI path)

🤖 Generated with Claude Code

cargo-dylint 6.x fails with "environment variable not found:
RUSTUP_HOME" when the variable is not exported. CI exports it, but
local shells typically rely on rustup's implicit default, so bash lint
failed on dev machines. Derive it from `rustup show home` when unset.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@zackees
zackees merged commit 4167d84 into main Jun 12, 2026
25 checks passed
@zackees
zackees deleted the fix/lint-rustup-home branch June 12, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant